package com.lty.spider;

import com.lty.spider.pipeline.MoivePipeline;
import com.lty.spider.process.MovieProcess;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import us.codecraft.webmagic.Spider;

@SpringBootApplication
public class SpiderApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpiderApplication.class, args);
        Spider.create(new MovieProcess())
                .addUrl("https://www.dytt8.net/html/gndy/dyzz/list_23_1.html")
                .addPipeline(new MoivePipeline())
                
                .run();
    }

}
